<?php
namespace pgc;
use \hc\tpl;
use \hc\session;
use \hc\js;
class Loginlog extends tpl{
	public function __construct(){
		parent::__construct();
		session::init();
		$this->loginlog_m=new \model\loginlog_m;
		if(isset($_SESSION['pgcinfo'])){
				$this->pgcinfo=$_SESSION['pgcinfo'];
		}else{
				$url=MODEL_URL."/Login/index.html";
			 echo 	js::to_url($url);exit;
		}
	}
	public function index(){
			$where=array();
			$data=$this->loginlog_m->s_all_ajaxs($where);
			if(isset($_POST['ajaxs'])){
					ajax_return(true,'',$data);
			}
      $this->assign('listarr',$data['list']);
      $this->assign('pageshow',$data['pageshow']);
			$this->display('loginlog/lists.tpl');
	}
}
